/*
 * Copyright 2010-2012 Susanta Tewari. <freecode4susant@users.sourceforge.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package gui.genomemap.tree;

import gui.genomemap.event.event.WorkerEvent;
import gui.genomemap.outputModel.OutputModel;

import java.util.Collection;

/**
 *
 * @author stewari1
 */
public class RootNode extends ViewTreeNode {

    /** Field description */
    private int workerType = 0;

    /** Field description */
    private Collection<? extends OutputModel> outputModels = null;

    /**
     * Constructs ...
     *
     * @param workerType description
     */
    public RootNode(int workerType) {

        setWorkerType(workerType);
        setType(TYPE_ROOT);

        switch (workerType) {

            case WorkerEvent.COM_GLHOOD :
                setDescription("GHood Output Models");

                break;

            case WorkerEvent.COM_PLHOOD :
                setDescription("PHood Output Models");

                break;

            case WorkerEvent.COM_JLHOOD :
                setDescription("JHood Output Models");

                break;

            case WorkerEvent.ANNEAL :
                setDescription("Annealing Output Models");

                break;

            case WorkerEvent.PROG_CURVE :
                setDescription("ProgCurve Output Models");

                break;
        }
    }

    public int getWorkerType() {
        return workerType;
    }

    void setWorkerType(int workerType) {
        this.workerType = workerType;
    }

    public Collection<? extends OutputModel> getOutputModels() {
        return outputModels;
    }

    public void setOutputModels(Collection<? extends OutputModel> outputModels) {
        this.outputModels = outputModels;
    }
}
